let commodityDao = require("../dao/commodtiyDao")

module.exports = {
    async getCommodity(page,searchParams) {
        return await commodityDao.getCommodity(page,searchParams)
    },
    async deleteCommodityById(_id) {
        return await commodityDao.deleteCommodityById(_id)
    },
    async updateCommodityById(Commodity) {
        return await commodityDao.updateCommodityById(Commodity)
    },
    async insertCommodity(Commodity) {
        return await commodityDao.insertCommodity(Commodity);
    },
    async findById(_id) {
        return await commodityDao.findById(_id);
    }
}